import {request} from "@/network/request";
import {ElMessage} from "element-plus";
export function UserList(callback) {
    request({
        url: '/login/UserList'
    }).then(res => {
        if (res.data.success) {
            callback(res.data.data)
        } else {
            ElMessage({
                type: 'warning',
                message: res.data.message
            })
        }
    }).catch(err => {
        ElMessage({
            type: 'warning',
            message: "数据错误!" + err
        })
    })
}